package mybatis;

import org.apache.ibatis.session.SqlSession;

import pojo.MyUser;
import pojo.SessionManager;

public class AppSelectByUserId {
	
	public static void main(String[] args) {
		SqlSession session = SessionManager.getInstance().getSession();
		
		MyUser user = new MyUser();
		
		String stmt = "mapping.userMapper.selectById2";
		user = session.selectOne(stmt, 1);
		System.out.println(user.getBlogs().size());
	
	}

}
